package com.example.system.controller;

import com.example.system.entiry.SysUser;
import com.example.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 描述:
 *
 * @author 张越
 * @create 2018-10-01 9:28
 */
@RestController
@RequestMapping("/system/SysUser")
public class SysUserController {


    @Autowired
    SysUserService sysUserService;

    @GetMapping("/list")
    public List<SysUser> getUser() {

        return sysUserService.list(null);
    }



    @GetMapping("/selectAll")
    public List<SysUser> getAllUser() {

        return sysUserService.list(null);
    }

}